﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GestionDeCinebox.Classes
{
    public class NumerableText
    {
        public NumerableText()
        {

        }

        public String filterNumber(String s)
        {
            if (s != null && s != "")
            {
                for (int i = 0; i < s.Length; i++)
                {
                    if (!(s[i] >= '0' && s[i] <= '9'))
                    {
                        s = s.Substring(0, i) + s.Substring(i + 1);
                        return s;
                    }
                }
            }

            return s;
        }
    }
}
